import request from "@/utils/request";

/**
 * @description 登录接口
 * @data {name:String,password:String}
 */

export function login(loginInfo) {
    return request({
        method: 'POST',
        url: '/frontend/sso/login',
        data: loginInfo
    })
}

/**
 * @description 登出接口
 * @data {name:String,password:String}
 */

export function logout(data) {
    return request({
        method: 'POST',
        url: '/frontend/sso/logout',
        data:data
    })
}

/**
 * @description 注册接口
 */

export function register(data) {
    return request({
        method: 'POST',
        url: '/frontend/sso/register',
        data: data
    })
}

/**
 * @description 查询个人信息
 */

export function getMyUserInfo() {
    return request({
        method: 'POST',
        url: '/frontend/my/info',
    })
}

